//
//  abAndeInModel.m
//  FreeTrip
//
//  Created by lanou on 15/11/23.
//  Copyright © 2015年 邓芮. All rights reserved.
//

#import "abAndeInModel.h"

@implementation abAndeInModel
-(void)setValue:(id)value forUndefinedKey:(NSString *)key
{
    if ([key isEqualToString:@"id"])
    {
        [self setValue:value forKey:@"Id"];
    }
}

- (void)encodeWithCoder:(NSCoder *)aCoder
{
    

    [aCoder encodeInteger:self.destination_trips_count forKey:@"destination_trips_count"];
    [aCoder encodeInteger:self.Id forKey:@"Id"];
    [aCoder encodeObject:self.image_url forKey:@"image_url"];
    [aCoder encodeObject:self.locked forKey:@"locked"];
    [aCoder encodeInteger:self.items_count forKey:@"items_count"];
    [aCoder encodeObject:self.name_en forKey:@"name_en"];
    [aCoder encodeObject:self.name_zh_cn forKey:@"name_zh_cn"];
    [aCoder encodeObject:self.exsitUrl forKey:@"exsitUrl"];
    
}
- (id)initWithCoder:(NSCoder *)aDecoder
{
    if (self = [super init])
    {
        self.Id = [aDecoder decodeIntegerForKey:@"Id"];
        self.destination_trips_count = [aDecoder decodeIntegerForKey:@"destination_trips_count"];
        self.image_url = [aDecoder decodeObjectForKey:@"image_url"];
        self.items_count = [aDecoder decodeIntegerForKey:@"items_count"];
        self.locked = [aDecoder decodeObjectForKey:@"locked"];
        self.name_en = [aDecoder decodeObjectForKey:@"name_en"];
        self.name_zh_cn = [aDecoder decodeObjectForKey:@"name_zh_cn"];
        self.exsitUrl = [aDecoder decodeObjectForKey:@"exsitUrl"];
    }
    return self;
}
@end
